package com.explam.springboot.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;
import org.springframework.format.annotation.DateTimeFormat;

/**
 * <p>
 * 收入表
 * </p>
 *
 * @author 作者
 * @since 2024-03-25
 */
@Getter
@Setter
@TableName("sys_income")
@ApiModel(value = "Income对象", description = "收入表")
public class Income implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户id")
    private Integer userId;

    @ApiModelProperty("用户昵称")
    private String nickName;

    @ApiModelProperty("标题")
    private String title;

    @ApiModelProperty("收入照片")
    private String photo;

    @ApiModelProperty("收人金额")
    private Float money;

    @ApiModelProperty("类型id")
    private Integer typeId;

    @ApiModelProperty("类型名称")
    private String typeName;

    @ApiModelProperty("方式id")
    private Integer paywayId;

    @ApiModelProperty("方式名称")
    private String paywayName;

    @ApiModelProperty("备注")
    private String notes;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty("收入时间")
    private LocalDateTime createTime;

    @TableLogic
    @ApiModelProperty("是否删除 0-否 1-是")
    private Integer isDel;



}
